# $NetBSD$

DISTNAME=	nary-0.1.0
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_GITHUB:=gx0r/}
GITHUB_TAG=	8f306bd40c74d0eaa21059e02fd49c10b3d16336

MAINTAINER=	nikita@NetBSD.org
HOMEPAGE=	https://github.com/gx0r/nary
COMMENT=	Npm in Rust
LICENSE=	mit

CARGO_CRATE_DEPENDS+=	adler-1.0.2
CARGO_CRATE_DEPENDS+=	aho-corasick-0.7.18
CARGO_CRATE_DEPENDS+=	ansi_term-0.11.0
CARGO_CRATE_DEPENDS+=	antidote-1.0.0
CARGO_CRATE_DEPENDS+=	anyhow-1.0.40
CARGO_CRATE_DEPENDS+=	atty-0.2.14
CARGO_CRATE_DEPENDS+=	autocfg-1.0.1
CARGO_CRATE_DEPENDS+=	base64-0.9.3
CARGO_CRATE_DEPENDS+=	bidir-map-1.0.0
CARGO_CRATE_DEPENDS+=	bitflags-1.2.1
CARGO_CRATE_DEPENDS+=	byteorder-1.4.3
CARGO_CRATE_DEPENDS+=	cc-1.0.67
CARGO_CRATE_DEPENDS+=	cfg-if-0.1.10
CARGO_CRATE_DEPENDS+=	cfg-if-1.0.0
CARGO_CRATE_DEPENDS+=	cfg_aliases-0.1.1
CARGO_CRATE_DEPENDS+=	clap-2.33.3
CARGO_CRATE_DEPENDS+=	console-0.14.1
CARGO_CRATE_DEPENDS+=	core-foundation-0.9.1
CARGO_CRATE_DEPENDS+=	core-foundation-sys-0.8.2
CARGO_CRATE_DEPENDS+=	crc32fast-1.2.1
CARGO_CRATE_DEPENDS+=	dirs-2.0.2
CARGO_CRATE_DEPENDS+=	dirs-sys-0.3.6
CARGO_CRATE_DEPENDS+=	encode_unicode-0.3.6
CARGO_CRATE_DEPENDS+=	filetime-0.2.14
CARGO_CRATE_DEPENDS+=	fixedbitset-0.2.0
CARGO_CRATE_DEPENDS+=	flate2-1.0.20
CARGO_CRATE_DEPENDS+=	foreign-types-0.3.2
CARGO_CRATE_DEPENDS+=	foreign-types-shared-0.1.1
CARGO_CRATE_DEPENDS+=	form_urlencoded-1.0.1
CARGO_CRATE_DEPENDS+=	getrandom-0.2.2
CARGO_CRATE_DEPENDS+=	git2-0.13.18
CARGO_CRATE_DEPENDS+=	hashbrown-0.9.1
CARGO_CRATE_DEPENDS+=	heck-0.3.2
CARGO_CRATE_DEPENDS+=	hermit-abi-0.1.18
CARGO_CRATE_DEPENDS+=	httparse-1.4.0
CARGO_CRATE_DEPENDS+=	hyper-0.10.16
CARGO_CRATE_DEPENDS+=	hyper-native-tls-0.3.0
CARGO_CRATE_DEPENDS+=	idna-0.1.5
CARGO_CRATE_DEPENDS+=	idna-0.2.3
CARGO_CRATE_DEPENDS+=	indexmap-1.6.2
CARGO_CRATE_DEPENDS+=	indicatif-0.16.0
CARGO_CRATE_DEPENDS+=	indoc-1.0.3
CARGO_CRATE_DEPENDS+=	instant-0.1.9
CARGO_CRATE_DEPENDS+=	itoa-0.4.7
CARGO_CRATE_DEPENDS+=	jobserver-0.1.22
CARGO_CRATE_DEPENDS+=	language-tags-0.2.2
CARGO_CRATE_DEPENDS+=	lazy_static-1.4.0
CARGO_CRATE_DEPENDS+=	libc-0.2.94
CARGO_CRATE_DEPENDS+=	libgit2-sys-0.12.19+1.1.0
CARGO_CRATE_DEPENDS+=	libssh2-sys-0.2.21
CARGO_CRATE_DEPENDS+=	libz-sys-1.1.3
CARGO_CRATE_DEPENDS+=	lock_api-0.4.4
CARGO_CRATE_DEPENDS+=	log-0.3.9
CARGO_CRATE_DEPENDS+=	log-0.4.14
CARGO_CRATE_DEPENDS+=	matches-0.1.8
CARGO_CRATE_DEPENDS+=	memchr-2.4.0
CARGO_CRATE_DEPENDS+=	mime-0.2.6
CARGO_CRATE_DEPENDS+=	miniz_oxide-0.4.4
CARGO_CRATE_DEPENDS+=	native-tls-0.2.7
CARGO_CRATE_DEPENDS+=	num_cpus-1.13.0
CARGO_CRATE_DEPENDS+=	number_prefix-0.4.0
CARGO_CRATE_DEPENDS+=	once_cell-1.7.2
CARGO_CRATE_DEPENDS+=	openssl-0.10.34
CARGO_CRATE_DEPENDS+=	openssl-probe-0.1.2
CARGO_CRATE_DEPENDS+=	openssl-sys-0.9.62
CARGO_CRATE_DEPENDS+=	parking_lot-0.11.1
CARGO_CRATE_DEPENDS+=	parking_lot_core-0.8.3
CARGO_CRATE_DEPENDS+=	percent-encoding-1.0.1
CARGO_CRATE_DEPENDS+=	percent-encoding-2.1.0
CARGO_CRATE_DEPENDS+=	petgraph-0.5.1
CARGO_CRATE_DEPENDS+=	pkg-config-0.3.19
CARGO_CRATE_DEPENDS+=	ppv-lite86-0.2.10
CARGO_CRATE_DEPENDS+=	proc-macro-error-1.0.4
CARGO_CRATE_DEPENDS+=	proc-macro-error-attr-1.0.4
CARGO_CRATE_DEPENDS+=	proc-macro2-1.0.26
CARGO_CRATE_DEPENDS+=	quote-1.0.9
CARGO_CRATE_DEPENDS+=	rand-0.8.3
CARGO_CRATE_DEPENDS+=	rand_chacha-0.3.0
CARGO_CRATE_DEPENDS+=	rand_core-0.6.2
CARGO_CRATE_DEPENDS+=	rand_hc-0.3.0
CARGO_CRATE_DEPENDS+=	redox_syscall-0.2.7
CARGO_CRATE_DEPENDS+=	redox_users-0.4.0
CARGO_CRATE_DEPENDS+=	regex-1.5.3
CARGO_CRATE_DEPENDS+=	regex-syntax-0.6.25
CARGO_CRATE_DEPENDS+=	remove_dir_all-0.5.3
CARGO_CRATE_DEPENDS+=	ryu-1.0.5
CARGO_CRATE_DEPENDS+=	safemem-0.3.3
CARGO_CRATE_DEPENDS+=	schannel-0.1.19
CARGO_CRATE_DEPENDS+=	scopeguard-1.1.0
CARGO_CRATE_DEPENDS+=	security-framework-2.2.0
CARGO_CRATE_DEPENDS+=	security-framework-sys-2.2.0
CARGO_CRATE_DEPENDS+=	semver_rs-0.1.3
CARGO_CRATE_DEPENDS+=	serde-1.0.125
CARGO_CRATE_DEPENDS+=	serde_derive-1.0.125
CARGO_CRATE_DEPENDS+=	serde_json-1.0.64
CARGO_CRATE_DEPENDS+=	smallvec-1.6.1
CARGO_CRATE_DEPENDS+=	static_init-1.0.1
CARGO_CRATE_DEPENDS+=	static_init_macro-1.0.1
CARGO_CRATE_DEPENDS+=	strsim-0.8.0
CARGO_CRATE_DEPENDS+=	structopt-0.3.21
CARGO_CRATE_DEPENDS+=	structopt-derive-0.4.14
CARGO_CRATE_DEPENDS+=	syn-1.0.71
CARGO_CRATE_DEPENDS+=	tar-0.4.33
CARGO_CRATE_DEPENDS+=	tempfile-3.2.0
CARGO_CRATE_DEPENDS+=	terminal_size-0.1.16
CARGO_CRATE_DEPENDS+=	textwrap-0.11.0
CARGO_CRATE_DEPENDS+=	thiserror-1.0.24
CARGO_CRATE_DEPENDS+=	thiserror-impl-1.0.24
CARGO_CRATE_DEPENDS+=	time-0.1.43
CARGO_CRATE_DEPENDS+=	tinyvec-1.2.0
CARGO_CRATE_DEPENDS+=	tinyvec_macros-0.1.0
CARGO_CRATE_DEPENDS+=	traitobject-0.1.0
CARGO_CRATE_DEPENDS+=	typeable-0.1.2
CARGO_CRATE_DEPENDS+=	unicase-1.4.2
CARGO_CRATE_DEPENDS+=	unicase-2.6.0
CARGO_CRATE_DEPENDS+=	unicode-bidi-0.3.5
CARGO_CRATE_DEPENDS+=	unicode-normalization-0.1.17
CARGO_CRATE_DEPENDS+=	unicode-segmentation-1.7.1
CARGO_CRATE_DEPENDS+=	unicode-width-0.1.8
CARGO_CRATE_DEPENDS+=	unicode-xid-0.2.2
CARGO_CRATE_DEPENDS+=	unindent-0.1.7
CARGO_CRATE_DEPENDS+=	url-1.7.2
CARGO_CRATE_DEPENDS+=	url-2.2.1
CARGO_CRATE_DEPENDS+=	vcpkg-0.2.12
CARGO_CRATE_DEPENDS+=	vec_map-0.8.2
CARGO_CRATE_DEPENDS+=	version_check-0.1.5
CARGO_CRATE_DEPENDS+=	version_check-0.9.3
CARGO_CRATE_DEPENDS+=	wasi-0.10.2+wasi-snapshot-preview1
CARGO_CRATE_DEPENDS+=	winapi-0.3.9
CARGO_CRATE_DEPENDS+=	winapi-i686-pc-windows-gnu-0.4.0
CARGO_CRATE_DEPENDS+=	winapi-x86_64-pc-windows-gnu-0.4.0
CARGO_CRATE_DEPENDS+=	xattr-0.2.2

INSTALLATION_DIRS=	bin

MAKE_ENV+=		OPENSSL_DIR=${BUILDLINK_PREFIX.openssl:Q}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/target/release/nary ${DESTDIR}${PREFIX}/bin

.include "../../lang/rust/cargo.mk"
.include "../../lang/rust/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
